package com.chengma.service.impl;

import java.util.List;

import com.chengma.domain.TbUserLikedComment;
import com.chengma.mapper.TbUserLikedCommentMapper;
import com.chengma.service.ITbUserLikedCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户点赞评论Service业务层处理
 * 
 * @author tck
 * @date 2025-03-19
 */
@Service
public class TbUserLikedCommentServiceImpl implements ITbUserLikedCommentService
{
    @Autowired
    private TbUserLikedCommentMapper tbUserLikedCommentMapper;

    /**
     * 查询用户点赞评论
     * 
     * @param username 用户点赞评论主键
     * @return 用户点赞评论
     */
    @Override
    public TbUserLikedComment selectTbUserLikedCommentByUsername(String username)
    {
        return tbUserLikedCommentMapper.selectTbUserLikedCommentByUsername(username);
    }

    /**
     * 查询用户点赞评论列表
     * 
     * @param tbUserLikedComment 用户点赞评论
     * @return 用户点赞评论
     */
    @Override
    public List<TbUserLikedComment> selectTbUserLikedCommentList(TbUserLikedComment tbUserLikedComment)
    {
        return tbUserLikedCommentMapper.selectTbUserLikedCommentList(tbUserLikedComment);
    }

    /**
     * 新增用户点赞评论
     * 
     * @param tbUserLikedComment 用户点赞评论
     * @return 结果
     */
    @Override
    public int insertTbUserLikedComment(TbUserLikedComment tbUserLikedComment)
    {
        return tbUserLikedCommentMapper.insertTbUserLikedComment(tbUserLikedComment);
    }

    /**
     * 修改用户点赞评论
     * 
     * @param tbUserLikedComment 用户点赞评论
     * @return 结果
     */
    @Override
    public int updateTbUserLikedComment(TbUserLikedComment tbUserLikedComment)
    {
        return tbUserLikedCommentMapper.updateTbUserLikedComment(tbUserLikedComment);
    }

    /**
     * 批量删除用户点赞评论
     * 
     * @param usernames 需要删除的用户点赞评论主键
     * @return 结果
     */
    @Override
    public int deleteTbUserLikedCommentByUsernames(String[] usernames)
    {
        return tbUserLikedCommentMapper.deleteTbUserLikedCommentByUsernames(usernames);
    }

    /**
     * 删除用户点赞评论信息
     * 
     * @param username 用户点赞评论主键
     * @return 结果
     */
    @Override
    public int deleteTbUserLikedCommentByUsername(String username)
    {
        return tbUserLikedCommentMapper.deleteTbUserLikedCommentByUsername(username);
    }
}
